package com.kashow.bean.message.official;

import android.text.TextUtils;

import com.chad.library.adapter.base.entity.MultiItemEntity;
import com.kashow.bean.BaseBean;

import java.util.List;

/**
 * Created by yybs on 16/11/23.
 */

public class Official extends BaseBean implements MultiItemEntity{

    /**
     * _id : 29
     * user : {"__v":0,"_id":9,"balance":0,"createdAt":"2016-10-24T06:20:51.469Z","isSub":true,"isTeacher":true,"level":1,"openid":"ohHipv72E3PtsbpOtXnzNJ8qNSf0","relation":7,"score":0,"sex":0,"wxUserInfo":{"openid":"ohHipv72E3PtsbpOtXnzNJ8qNSf0","nickname":"雫�","sex":2,"city":"","province":"","country":"China","headimgurl":"http://wx.qlogo.cn/mmopen/5o4zvfpTMOU4XnLbOJPibWRkOjef3C8PcyUK6RJRTjLFUGdTcnBcVVly2jyp9bmibH77JwWriaxqqTseVN7j4qoe21pSkV9iboad/0","updatedAt":"2016-10-24T06:20:51.000Z"}}
     * live : {"__v":1,"_id":43,"a_stream":["http://oss.kashowvr.com/cyjx003_audio.mp3"],"a_watch":67,"category":5,"createdAt":"2016-11-18T03:14:58.104Z","desc":"培训行业趋势论坛直播","imgDescs":[],"livePic":"http://oss.kashowvr.com/wx/upload/media/ll3J6vJyfBtJ_a2e7rN2XlSsENUynbCqs_Pr9ATwFWDk86TYMYC6CQCY5iGdvUs7.jpeg","liveSharePic":"http://oss.kashowvr.com/wx/upload/media/ll3J6vJyfBtJ_a2e7rN2XlSsENUynbCqs_Pr9ATwFWDk86TYMYC6CQCY5iGdvUs7.jpeg","playUrl":"http://pili-live-hls.kashowvr.com/kashowvr/bfb81afe7ab94da0a3b60514fd89b65c.m3u8","price":9800,"priority":1,"score":0.01,"startAt":"2016-11-28T00:00:00.000Z","status":2,"stream":"bfb81afe7ab94da0a3b60514fd89b65c","teacher":4,"title":"趋势论坛直播","watch":55}
     * createdAt : 2016-11-18 11:48:23
     * read : 1
     * id : 29
     */

    private int _id;
    private UserBean user;
    private LiveBean live;
    private String createdAt;
    private int read;
    private String title;
    private String content;
    private String imgUrl;
    private String link;
    private String id;

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public LiveBean getLive() {
        return live;
    }

    public void setLive(LiveBean live) {
        this.live = live;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public int getRead() {
        return read;
    }

    public void setRead(int read) {
        this.read = read;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public int getItemType() {
        return TextUtils.isEmpty(imgUrl) ? 0 : 1;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public String getLink() {
        return link;
    }

    public void setLink(String link) {
        this.link = link;
    }

    public static class UserBean {
        /**
         * __v : 0
         * _id : 9
         * balance : 0
         * createdAt : 2016-10-24T06:20:51.469Z
         * isSub : true
         * isTeacher : true
         * level : 1
         * openid : ohHipv72E3PtsbpOtXnzNJ8qNSf0
         * relation : 7
         * score : 0
         * sex : 0
         * wxUserInfo : {"openid":"ohHipv72E3PtsbpOtXnzNJ8qNSf0","nickname":"雫�","sex":2,"city":"","province":"","country":"China","headimgurl":"http://wx.qlogo.cn/mmopen/5o4zvfpTMOU4XnLbOJPibWRkOjef3C8PcyUK6RJRTjLFUGdTcnBcVVly2jyp9bmibH77JwWriaxqqTseVN7j4qoe21pSkV9iboad/0","updatedAt":"2016-10-24T06:20:51.000Z"}
         */

        private int _id;
        private int balance;
        private String createdAt;
        private boolean isSub;
        private boolean isTeacher;
        private int level;
        private String openid;
        private int relation;
        private float score;
        private int sex;
        private WxUserInfoBean wxUserInfo;

        public int get_id() {
            return _id;
        }

        public void set_id(int _id) {
            this._id = _id;
        }

        public int getBalance() {
            return balance;
        }

        public void setBalance(int balance) {
            this.balance = balance;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public boolean isIsSub() {
            return isSub;
        }

        public void setIsSub(boolean isSub) {
            this.isSub = isSub;
        }

        public boolean isIsTeacher() {
            return isTeacher;
        }

        public void setIsTeacher(boolean isTeacher) {
            this.isTeacher = isTeacher;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public String getOpenid() {
            return openid;
        }

        public void setOpenid(String openid) {
            this.openid = openid;
        }

        public int getRelation() {
            return relation;
        }

        public void setRelation(int relation) {
            this.relation = relation;
        }

        public float getScore() {
            return score;
        }

        public void setScore(float score) {
            this.score = score;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public WxUserInfoBean getWxUserInfo() {
            return wxUserInfo;
        }

        public void setWxUserInfo(WxUserInfoBean wxUserInfo) {
            this.wxUserInfo = wxUserInfo;
        }

        public static class WxUserInfoBean {
            /**
             * openid : ohHipv72E3PtsbpOtXnzNJ8qNSf0
             * nickname : 雫�
             * sex : 2
             * city :
             * province :
             * country : China
             * headimgurl : http://wx.qlogo.cn/mmopen/5o4zvfpTMOU4XnLbOJPibWRkOjef3C8PcyUK6RJRTjLFUGdTcnBcVVly2jyp9bmibH77JwWriaxqqTseVN7j4qoe21pSkV9iboad/0
             * updatedAt : 2016-10-24T06:20:51.000Z
             */

            private String openid;
            private String nickname;
            private int sex;
            private String city;
            private String province;
            private String country;
            private String headimgurl;
            private String updatedAt;

            public String getOpenid() {
                return openid;
            }

            public void setOpenid(String openid) {
                this.openid = openid;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public int getSex() {
                return sex;
            }

            public void setSex(int sex) {
                this.sex = sex;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getHeadimgurl() {
                return headimgurl;
            }

            public void setHeadimgurl(String headimgurl) {
                this.headimgurl = headimgurl;
            }

            public String getUpdatedAt() {
                return updatedAt;
            }

            public void setUpdatedAt(String updatedAt) {
                this.updatedAt = updatedAt;
            }
        }
    }

    public static class LiveBean {
        /**
         * __v : 1
         * _id : 43
         * a_stream : ["http://oss.kashowvr.com/cyjx003_audio.mp3"]
         * a_watch : 67
         * category : 5
         * createdAt : 2016-11-18T03:14:58.104Z
         * desc : 培训行业趋势论坛直播
         * imgDescs : []
         * livePic : http://oss.kashowvr.com/wx/upload/media/ll3J6vJyfBtJ_a2e7rN2XlSsENUynbCqs_Pr9ATwFWDk86TYMYC6CQCY5iGdvUs7.jpeg
         * liveSharePic : http://oss.kashowvr.com/wx/upload/media/ll3J6vJyfBtJ_a2e7rN2XlSsENUynbCqs_Pr9ATwFWDk86TYMYC6CQCY5iGdvUs7.jpeg
         * playUrl : http://pili-live-hls.kashowvr.com/kashowvr/bfb81afe7ab94da0a3b60514fd89b65c.m3u8
         * price : 9800
         * priority : 1
         * score : 0.01
         * startAt : 2016-11-28T00:00:00.000Z
         * status : 2
         * stream : bfb81afe7ab94da0a3b60514fd89b65c
         * teacher : 4
         * title : 趋势论坛直播
         * watch : 55
         */

        private int _id;
        private int a_watch;
        private int category;
        private String createdAt;
        private String desc;
        private String livePic;
        private String liveSharePic;
        private String playUrl;
        private int price;
        private int priority;
        private double score;
        private String startAt;
        private int status;
        private String stream;
        private int teacher;
        private String title;
        private int watch;
        private List<String> a_stream;
        private List<?> imgDescs;

        public int get_id() {
            return _id;
        }

        public void set_id(int _id) {
            this._id = _id;
        }

        public int getA_watch() {
            return a_watch;
        }

        public void setA_watch(int a_watch) {
            this.a_watch = a_watch;
        }

        public int getCategory() {
            return category;
        }

        public void setCategory(int category) {
            this.category = category;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public String getDesc() {
            return desc;
        }

        public void setDesc(String desc) {
            this.desc = desc;
        }

        public String getLivePic() {
            return livePic;
        }

        public void setLivePic(String livePic) {
            this.livePic = livePic;
        }

        public String getLiveSharePic() {
            return liveSharePic;
        }

        public void setLiveSharePic(String liveSharePic) {
            this.liveSharePic = liveSharePic;
        }

        public String getPlayUrl() {
            return playUrl;
        }

        public void setPlayUrl(String playUrl) {
            this.playUrl = playUrl;
        }

        public int getPrice() {
            return price;
        }

        public void setPrice(int price) {
            this.price = price;
        }

        public int getPriority() {
            return priority;
        }

        public void setPriority(int priority) {
            this.priority = priority;
        }

        public double getScore() {
            return score;
        }

        public void setScore(double score) {
            this.score = score;
        }

        public String getStartAt() {
            return startAt;
        }

        public void setStartAt(String startAt) {
            this.startAt = startAt;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public String getStream() {
            return stream;
        }

        public void setStream(String stream) {
            this.stream = stream;
        }

        public int getTeacher() {
            return teacher;
        }

        public void setTeacher(int teacher) {
            this.teacher = teacher;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public int getWatch() {
            return watch;
        }

        public void setWatch(int watch) {
            this.watch = watch;
        }

        public List<String> getA_stream() {
            return a_stream;
        }

        public void setA_stream(List<String> a_stream) {
            this.a_stream = a_stream;
        }

        public List<?> getImgDescs() {
            return imgDescs;
        }

        public void setImgDescs(List<?> imgDescs) {
            this.imgDescs = imgDescs;
        }
    }
}
